package com.springsummer.information.green.webmvc;

import java.net.ServerSocket;
import java.net.Socket;

public class ServiceHttpServer {

    public static void main(String[] args) throws Exception {
        int port = 8080;
        ServerSocket serverSocket = new ServerSocket(port);
        System.out.println("Server start listening on port " + port);

        while (true) {
            Socket clientSocket = serverSocket.accept();
            Runnable runnable=new ServiceThread(clientSocket);
            new Thread(runnable).start();
        }
    }

}
